
const standardLibMap = {
    "timestamp": "2021-07-30T08:56:19+0800",
    "code": "0",
    "message": "成功",
    "data": {
        "total": 7,
        "paged": true,
        "page": 0,
        "perPage": 20,
        "totalPages": 1,
        "search": null,
        "results": [
            {
                "id": 1,
                "name": "SUSE",
                "version": "12_SP3",
                "cpuArch": "x86_64",
                "reserved1": null,
                "reserved2": null,
                "createdAt": "2021-07-27T01:38:02.085391Z",
                "updatedAt": "2021-07-27T01:38:02.085394Z"
            },
            {
                "id": 2,
                "name": "SUSE",
                "version": "12_SP5",
                "cpuArch": "x86_64",
                "reserved1": null,
                "reserved2": null,
                "createdAt": "2021-07-27T01:38:02.704225Z",
                "updatedAt": "2021-07-27T01:38:02.704227Z"
            },
            {
                "id": 3,
                "name": "SUSE",
                "version": "11_SP4",
                "cpuArch": "x86_64",
                "reserved1": null,
                "reserved2": null,
                "createdAt": "2021-07-27T01:38:02.755702Z",
                "updatedAt": "2021-07-27T01:38:02.755703Z"
            },
            {
                "id": 4,
                "name": "中标麒麟高级服务器操作系统",
                "version": "V7.0",
                "cpuArch": "x86_64",
                "reserved1": null,
                "reserved2": null,
                "createdAt": "2021-07-27T01:38:02.814806Z",
                "updatedAt": "2021-07-27T01:38:02.814807Z"
            },
            {
                "id": 5,
                "name": "中标麒麟高级服务器操作系统",
                "version": "V7.0",
                "cpuArch": "aarch64",
                "reserved1": null,
                "reserved2": null,
                "createdAt": "2021-07-27T01:38:03.014063Z",
                "updatedAt": "2021-07-27T01:38:03.014065Z"
            },
            {
                "id": 6,
                "name": "银河麒麟高级服务器操作系统",
                "version": "V10(SP1)",
                "cpuArch": "x86_64",
                "reserved1": null,
                "reserved2": null,
                "createdAt": "2021-07-27T01:38:03.159529Z",
                "updatedAt": "2021-07-27T01:38:03.159530Z"
            },
            {
                "id": 7,
                "name": "银河麒麟高级服务器操作系统",
                "version": "V10(SP1)",
                "cpuArch": "aarch64",
                "reserved1": null,
                "reserved2": null,
                "createdAt": "2021-07-27T01:38:03.306539Z",
                "updatedAt": "2021-07-27T01:38:03.306539Z"
            }
        ]
    }
}

const configMap = {
    "timestamp": "2021-07-30T08:58:35+0800",
    "code": "0",
    "message": "成功",
    "data": {
        "total": 1081,
        "paged": true,
        "page": 0,
        "perPage": 20,
        "totalPages": 55,
        "search": null,
        "results": [
            {
                "id": 1,
                "name": "fs.aio-max-nr",
                "configType": "内核参数",
                "attribute": "弱配置项",
                "baseline": "1048576",
                "description": "当前活动的aio指定的事件总数的最大运行数量。当aio-nr达到aio-max-nr，则io_setup将失败并显示EAGAIN。请注意，提高aio-max-nr不会导致任何内核数据结构的预先分配或调整大小。",
                "flag": "false",
                "filePath": "/etc/sysctl.conf",
                "reserved1": null,
                "reserved2": null,
                "createdAt": "2021-07-27T01:38:02.621050Z",
                "updatedAt": "2021-07-27T01:38:02.621051Z",
                "standardId": 1,
                "standardName": "SUSE"
            },
            {
                "id": 2,
                "name": "fs.aio-nr",
                "configType": "内核参数",
                "attribute": "弱配置项",
                "baseline": "0",
                "description": "aio-nr是在io_setup系统调用上为所有当前活动的aio上下文指定的事件总数的运行总数。",
                "flag": "false",
                "filePath": "/etc/sysctl.conf",
                "reserved1": null,
                "reserved2": null,
                "createdAt": "2021-07-27T01:38:02.621138Z",
                "updatedAt": "2021-07-27T01:38:02.621139Z",
                "standardId": 1,
                "standardName": "SUSE"
            },
            {
                "id": 3,
                "name": "fs.binfmt_misc.jexec",
                "configType": "内核参数",
                "attribute": "弱配置项",
                "baseline": "enabled,  interpreter /usr/java/default/lib/jexec,  flags",
                "description": "是内核的一项功能，只需在shell中键入其名称即可调用几乎每个程序。它通过将文件开头的某些字节与提供的magic 字节序列（屏蔽指定的位）进行匹配来识别二进制类型。",
                "flag": "false",
                "filePath": "/etc/sysctl.conf",
                "reserved1": null,
                "reserved2": null,
                "createdAt": "2021-07-27T01:38:02.621141Z",
                "updatedAt": "2021-07-27T01:38:02.621141Z",
                "standardId": 1,
                "standardName": "SUSE"
            },
            {
                "id": 4,
                "name": "fs.epoll.max_user_watches",
                "configType": "内核参数",
                "attribute": "弱配置项",
                "baseline": "3314462",
                "description": "IO复用epoll监听文件句柄的数量最大值",
                "flag": "false",
                "filePath": "/etc/sysctl.conf",
                "reserved1": null,
                "reserved2": null,
                "createdAt": "2021-07-27T01:38:02.621143Z",
                "updatedAt": "2021-07-27T01:38:02.621143Z",
                "standardId": 1,
                "standardName": "SUSE"
            },
            {
                "id": 5,
                "name": "fs.file-max",
                "configType": "内核参数",
                "attribute": "弱配置项",
                "baseline": "6815744",
                "description": "表示Linux内核将分配的最大文件句柄数。当收到许多有关文件句柄用尽的错误消息时，可以增加此限制。从历史上看，内核能够动态分配文件句柄，但无法再次释放它们。",
                "flag": "false",
                "filePath": "/etc/sysctl.conf",
                "reserved1": null,
                "reserved2": null,
                "createdAt": "2021-07-27T01:38:02.621144Z",
                "updatedAt": "2021-07-27T01:38:02.621145Z",
                "standardId": 1,
                "standardName": "SUSE"
            },
            {
                "id": 6,
                "name": "fs.may_detach_mounts",
                "configType": "内核参数",
                "attribute": "弱配置项",
                "baseline": "0",
                "description": "默认情况下，may_detach_mounts设置为值0。容器运行时间(docker和其他)需要新的行为并要求设置为1。如果dentry不是当前挂载namespace中的挂载点，该设置允许删除dentry，尽管会这些挂载点卸载其他挂载namespace中的挂载。我们需要这个可调参数以便在主机装载命名空间中运行docker守护程序。这将启用docker的共享卷功能，其中由容器装载的卷可以传播到主机。",
                "flag": "false",
                "filePath": "/etc/sysctl.conf",
                "reserved1": null,
                "reserved2": null,
                "createdAt": "2021-07-27T01:38:02.621146Z",
                "updatedAt": "2021-07-27T01:38:02.621146Z",
                "standardId": 1,
                "standardName": "SUSE"
            },
            {
                "id": 7,
                "name": "fs.nfs.idmap_cache_timeout",
                "configType": "内核参数",
                "attribute": "弱配置项",
                "baseline": "600",
                "description": "设置idmapper缓存项的最大寿命，单位是秒。",
                "flag": "false",
                "filePath": "/etc/sysctl.conf",
                "reserved1": null,
                "reserved2": null,
                "createdAt": "2021-07-27T01:38:02.621148Z",
                "updatedAt": "2021-07-27T01:38:02.621148Z",
                "standardId": 1,
                "standardName": "SUSE"
            },
            {
                "id": 8,
                "name": "fs.nfs.nfs_congestion_kb",
                "configType": "内核参数",
                "attribute": "弱配置项",
                "baseline": "128768",
                "description": "表示NFS拥塞大小，随可用内存扩展。可以使较大的机器进行更大/更多的传送。（单位kb)",
                "flag": "false",
                "filePath": "/etc/sysctl.conf",
                "reserved1": null,
                "reserved2": null,
                "createdAt": "2021-07-27T01:38:02.621149Z",
                "updatedAt": "2021-07-27T01:38:02.621149Z",
                "standardId": 1,
                "standardName": "SUSE"
            },
            {
                "id": 9,
                "name": "fs.nfs.nlm_tcpport",
                "configType": "内核参数",
                "attribute": "弱配置项",
                "baseline": "0",
                "description": "为NFS锁管理器指定TCP端口",
                "flag": "false",
                "filePath": "/etc/sysctl.conf",
                "reserved1": null,
                "reserved2": null,
                "createdAt": "2021-07-27T01:38:02.621151Z",
                "updatedAt": "2021-07-27T01:38:02.621151Z",
                "standardId": 1,
                "standardName": "SUSE"
            },
            {
                "id": 10,
                "name": "fs.nfs.nlm_udpport",
                "configType": "内核参数",
                "attribute": "弱配置项",
                "baseline": "0",
                "description": "为NFS锁管理器指定UDP端口",
                "flag": "false",
                "filePath": "/etc/sysctl.conf",
                "reserved1": null,
                "reserved2": null,
                "createdAt": "2021-07-27T01:38:02.621152Z",
                "updatedAt": "2021-07-27T01:38:02.621152Z",
                "standardId": 1,
                "standardName": "SUSE"
            },
            {
                "id": 11,
                "name": "fs.nfs.nsm_local_state",
                "configType": "内核参数",
                "attribute": "弱配置项",
                "baseline": "0",
                "description": "表示NSM当前状态",
                "flag": "false",
                "filePath": "/etc/sysctl.conf",
                "reserved1": null,
                "reserved2": null,
                "createdAt": "2021-07-27T01:38:02.621154Z",
                "updatedAt": "2021-07-27T01:38:02.621154Z",
                "standardId": 1,
                "standardName": "SUSE"
            },
            {
                "id": 12,
                "name": "fs.nfs.nsm_use_hostnames",
                "configType": "内核参数",
                "attribute": "弱配置项",
                "baseline": "0",
                "description": "如果设置了，lockd将使用客户端的name(NLM参数中给出的)来查找NSM handle。通过清除此sysctl标志，将使用NFS客户端的IP地址(而不是主机名)填充/var/lib/nfs/sm目录",
                "flag": "false",
                "filePath": "/etc/sysctl.conf",
                "reserved1": null,
                "reserved2": null,
                "createdAt": "2021-07-27T01:38:02.621155Z",
                "updatedAt": "2021-07-27T01:38:02.621156Z",
                "standardId": 1,
                "standardName": "SUSE"
            },
            {
                "id": 13,
                "name": "fscache.object_max_active",
                "configType": "内核参数",
                "attribute": "弱配置项",
                "baseline": "254",
                "description": "FS缓存有效的最大项目数。",
                "flag": "false",
                "filePath": "/etc/sysctl.conf",
                "reserved1": null,
                "reserved2": null,
                "createdAt": "2021-07-27T01:38:02.621157Z",
                "updatedAt": "2021-07-27T01:38:02.621157Z",
                "standardId": 1,
                "standardName": "SUSE"
            },
            {
                "id": 14,
                "name": "fscache.operation_max_active",
                "configType": "内核参数",
                "attribute": "弱配置项",
                "baseline": "127",
                "description": "FS缓存有效的最大运营数，控制并发性。",
                "flag": "false",
                "filePath": "/etc/sysctl.conf",
                "reserved1": null,
                "reserved2": null,
                "createdAt": "2021-07-27T01:38:02.621159Z",
                "updatedAt": "2021-07-27T01:38:02.621159Z",
                "standardId": 1,
                "standardName": "SUSE"
            },
            {
                "id": 15,
                "name": "kernel.bootloader_version",
                "configType": "内核参数",
                "attribute": "弱配置项",
                "baseline": "2",
                "description": "X86引导程序版本。完整的引导加载程序版本号。",
                "flag": "false",
                "filePath": "/etc/sysctl.conf",
                "reserved1": null,
                "reserved2": null,
                "createdAt": "2021-07-27T01:38:02.621160Z",
                "updatedAt": "2021-07-27T01:38:02.621160Z",
                "standardId": 1,
                "standardName": "SUSE"
            },
            {
                "id": 16,
                "name": "kernel.cap_last_cap",
                "configType": "内核参数",
                "attribute": "弱配置项",
                "baseline": "37",
                "description": "正在运行的内核的最高有效能力。从内核导出CAP_LAST_CAP。",
                "flag": "false",
                "filePath": "/etc/sysctl.conf",
                "reserved1": null,
                "reserved2": null,
                "createdAt": "2021-07-27T01:38:02.621162Z",
                "updatedAt": "2021-07-27T01:38:02.621162Z",
                "standardId": 1,
                "standardName": "SUSE"
            },
            {
                "id": 17,
                "name": "kernel.domainname",
                "configType": "内核参数",
                "attribute": "弱配置项",
                "baseline": "(none)",
                "description": "用于设置NIS / YP域名。",
                "flag": "false",
                "filePath": "/etc/sysctl.conf",
                "reserved1": null,
                "reserved2": null,
                "createdAt": "2021-07-27T01:38:02.621164Z",
                "updatedAt": "2021-07-27T01:38:02.621164Z",
                "standardId": 1,
                "standardName": "SUSE"
            },
            {
                "id": 18,
                "name": "kernel.ibpb_enabled",
                "configType": "内核参数",
                "attribute": "弱配置项",
                "baseline": "0",
                "description": "如果在cpuid(微码更新后)中存在Ibpb_SUPPORT或SPEC_CTRL，IBPB控制PRED_CMD模型特定寄存器(MSR)中的IBPB特性。当ibpb_enabled设置为1时，刷新间接分支预测内容的ibpb屏障会在user模式或guest模式上下文切换中运行，以防止user和guest模式攻击同一主机上的其他应用程序或虚拟机。为了保护虚拟机不受其他虚拟机的影响，如果ibpb_enabled设置为2，需要ibpb_enabled=1。",
                "flag": "false",
                "filePath": "/etc/sysctl.conf",
                "reserved1": null,
                "reserved2": null,
                "createdAt": "2021-07-27T01:38:02.621165Z",
                "updatedAt": "2021-07-27T01:38:02.621165Z",
                "standardId": 1,
                "standardName": "SUSE"
            },
            {
                "id": 19,
                "name": "kernel.keys.root_maxbytes",
                "configType": "内核参数",
                "attribute": "弱配置项",
                "baseline": "25000000",
                "description": "这是root用户(root用户命名空间中的UID 0)在root拥有的密钥的有效载荷中可以容纳的最大数据字节数。该文件中的默认值为25000，Linux 3.17之前为20000)。",
                "flag": "false",
                "filePath": "/etc/sysctl.conf",
                "reserved1": null,
                "reserved2": null,
                "createdAt": "2021-07-27T01:38:02.621167Z",
                "updatedAt": "2021-07-27T01:38:02.621167Z",
                "standardId": 1,
                "standardName": "SUSE"
            },
            {
                "id": 20,
                "name": "kernel.keys.root_maxkeys",
                "configType": "内核参数",
                "attribute": "弱配置项",
                "baseline": "1000000",
                "description": "这是root用户(root用户命名空间中的UID 0)可以拥有的最大密钥数。该文件中的默认值为1000000，Linux 3.17之前为200)",
                "flag": "false",
                "filePath": "/etc/sysctl.conf",
                "reserved1": null,
                "reserved2": null,
                "createdAt": "2021-07-27T01:38:02.621169Z",
                "updatedAt": "2021-07-27T01:38:02.621169Z",
                "standardId": 1,
                "standardName": "SUSE"
            }
        ]
    }
}


export default {
    getStandardLib: config => {
        return standardLibMap
    },
    getConfigureItem: config => {
        return configMap
    }
}